package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;

@Controller
public class ParamController {

    @PostMapping("/param10")
    public String param10(@RequestBody MultipartFile myFile) throws IOException {
        InputStream inputStream = myFile.getInputStream();

        System.out.println(myFile);
        return "/index.jsp";
    }
}
